<?php

use Nette\Application\Routers\RouteList,
	Nette\Application\Routers\Route,
	Nette\Application\Routers\SimpleRouter;


/**
 * Router factory.
 */
class RouterFactory
{

	/**
	 * @return Nette\Application\IRouter
	 */
	public function createRouter()
	{
		$router = new RouteList();

		/* news router */
		$router[] = $newsRouter = new RouteList('News');
		$newsRouter[] = new Route('novinky', 'Default:default');
		$newsRouter[] = new Route('novinky/sss', 'Default:newsDetail');
    
    /* user router */
		$router[] = $usersRouter = new RouteList('Users');
		$usersRouter[] = new Route('profil', 'Default:default');
		$usersRouter[] = new Route('registrace', 'Register:default');
		$usersRouter[] = new Route('aktivace', 'Default:activate');

		/* lesson router */
		$router[] = $lessonRouter = new RouteList('Lessons');
		$lessonRouter[] = new Route('', 'Default:default');
		$lessonRouter[] = new Route('kytarove_lekce', 'Default:lessons');
		$lessonRouter[] = new Route('kytarove_lekce/video', 'Default:video');
		$lessonRouter[] = new Route('kytarove_lekce[/<name>]', 'Default:lessonDetail');

		/** default page for web*/
		$router[] = new Route('index.php', 'Lessons:Default:default', Route::ONE_WAY);
		return $router;
	}

}
